package impl

import (
	"go_code/map-collection-standalone/Mapper"
	"go_code/map-collection-standalone/model/Entity"
)

type MapEntityServiceImpl struct {
	mapEntityMapper Mapper.MapEntityMapper
}

func (this *MapEntityServiceImpl) SelectById(id int64) (result Entity.MapEntity, err error) {
	return this.mapEntityMapper.SelectById(id)
}

func (this *MapEntityServiceImpl) Update(mapEntity *Entity.MapEntity) error {
	return this.mapEntityMapper.Update(mapEntity)
}

func (this *MapEntityServiceImpl) DeleteById(id int64) error {
	return this.mapEntityMapper.DeleteById(id)
}

func (this *MapEntityServiceImpl) Insert(mapEntity *Entity.MapEntity) error {
	return this.mapEntityMapper.Insert(mapEntity)
}
